//
//  WeatherViewCell.m
//  QcMedical1
//
//  Created by 仲启明 on 2016/12/20.
//  Copyright © 2016年 jiawen Du. All rights reserved.
//

#import "WeatherViewCell.h"
#import "UIImage+GIF.h"
@interface WeatherViewCell()
@property (weak, nonatomic) IBOutlet UILabel *lb_weather;

@property (weak, nonatomic) IBOutlet UILabel *lb_temperature;
@property (weak, nonatomic) IBOutlet UILabel *lb_date;
@property (weak, nonatomic) IBOutlet UIView *view_con;
@property (weak, nonatomic) IBOutlet UIImageView *img_icon;
@property (weak, nonatomic) IBOutlet UIImageView *img_car;

@end
@implementation WeatherViewCell

- (void)awakeFromNib
{
    [super awakeFromNib];

}

- (void)setModel:(QcWeatherModel *)model
{
    
    _model = model;
    self.img_car.image = [UIImage sd_animatedGIFNamed:@"taiyanghua"];
    self.lb_date.text = [NSString stringWithFormat:@"%@",model.date];
    self.lb_date.font = [UIFont fontWithName:@"CloudShuiZhuGBK" size:15];
    
    self.lb_weather.text = model.weather;
        self.lb_temperature.text = [NSString stringWithFormat:@"%@",model.temperature];
    
    self.lb_temperature.font = [UIFont fontWithName:@"DBLCDTempBlack" size:30];
    [self.img_icon sd_setImageWithURL:[NSURL URLWithString:model.dayPictureUrl]];
    
    
    
}
@end
